package com.valley.dream.tihai.service;


import com.valley.dream.tihai.model.dto.InitProblemBO;
import com.valley.dream.tihai.model.dto.SelectProblemByRecommendVO;
import com.valley.dream.tihai.model.entity.Problem;
import com.valley.dream.tihai.util.result.Result;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;

public interface ProblemService {

    @POST("problem/createProblem")
    Call<Result> createProblem(@Body Problem problem);

    @GET("problem/getInitProblem")
    Call<List<InitProblemBO>> getInitProblem();

    @GET("problem/selectProblemByType")
    Call<List<Problem>> selectProblemByType(Integer typeId);

    @GET("problem/selectProblemByRecommend")
    Call<List<SelectProblemByRecommendVO>> selectProblemByRecommend();

}
